ComponentOne DataGrid for WPF and Silverlight
SetValue(Object,Object,BindingFlags,Binder,Object[],CultureInfo) Method

C1.WPF.DataGrid Namespace > CustomPropertyInfo Class > SetValue Method : SetValue(Object,Object,BindingFlags,Binder,Object[],CultureInfo) Method
The object whose property value will be set.
The new value for this property.
The invocation attribute. This must be a bit flag from System.Reflection.BindingFlags : InvokeMethod, CreateInstance, Static, GetField, SetField, GetProperty, or SetProperty. A suitable invocation attribute must be specified. If a static member is to be invoked, the Static flag of BindingFlags must be set.
An object that enables the binding, coercion of argument types, invocation of members, and retrieval of System.Reflection.MemberInfo objects through reflection. If binder is null, the default binder is used.
Optional index values for indexed properties. This value should be null for non-indexed properties.
The System.Globalization.CultureInfo object that represents the culture for which the resource is to be localized. Note that if the resource is not localized for this culture, the CultureInfo.Parent method will be called successively in search of a match. If this value is null, the CultureInfo is obtained from the CultureInfo.CurrentUICulture property.
When overridden in a derived class, sets the property value for the given object to the given value.
Syntax
'Declaration
 
Public Overloads Overrides Sub SetValue( _
   ByVal obj As System.Object, _
   ByVal value As System.Object, _
   ByVal invokeAttr As System.Reflection.BindingFlags, _
   ByVal binder As System.Reflection.Binder, _
   ByVal index() As System.Object, _
   ByVal culture As System.Globalization.CultureInfo _
) 
public override void SetValue( 
   System.object obj,
   System.object value,
   System.Reflection.BindingFlags invokeAttr,
   System.Reflection.Binder binder,
   System.object[] index,
   System.Globalization.CultureInfo culture
)

Parameters

obj
The object whose property value will be set.
value
The new value for this property.
invokeAttr
The invocation attribute. This must be a bit flag from System.Reflection.BindingFlags : InvokeMethod, CreateInstance, Static, GetField, SetField, GetProperty, or SetProperty. A suitable invocation attribute must be specified. If a static member is to be invoked, the Static flag of BindingFlags must be set.
binder
An object that enables the binding, coercion of argument types, invocation of members, and retrieval of System.Reflection.MemberInfo objects through reflection. If binder is null, the default binder is used.
index
Optional index values for indexed properties. This value should be null for non-indexed properties.
culture
The System.Globalization.CultureInfo object that represents the culture for which the resource is to be localized. Note that if the resource is not localized for this culture, the CultureInfo.Parent method will be called successively in search of a match. If this value is null, the CultureInfo is obtained from the CultureInfo.CurrentUICulture property.
Exceptions
ExceptionDescription
The index array does not contain the type of arguments needed.-or- The property's set accessor is not found.
The object does not match the target type, or a property is an instance property but obj is null.
The number of parameters in index does not match the number of parameters the indexed property takes.
There was an illegal attempt to access a private or protected method inside a class.
An error occurred while setting the property value. For example, an index value specified for an indexed property is out of range. The System.Exception.InnerException property indicates the reason for the error.
See Also

Reference

CustomPropertyInfo Class
CustomPropertyInfo Members
Overload List